package com.atguigu.spzx.model.vo.common;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(200,"成功"),
    LOGIN_FAILED(201,"登录失败，账号密码不匹配"),
    FAILED(202,"失败"),
    ERROR(500,"系统维护中"),
    USER_INFO_NULL(202,"获取用户信息失败"),
    CAPTCHA_ERROR(300,"验证码错误"),


    ;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private final Integer code;
    private final String message;
}
